package com.efast.dmom.mes.entity;

import java.time.LocalTime;

import com.efast.dmom.mes.entity.base.ConfigurationBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;

public class ShiftEntity extends ConfigurationBaseEntity{

	private static final long serialVersionUID = -6198866190437703845L;
	
	private String shiftCode;
	private int overTime; //加班；分钟为单位
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm:ss")
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
	private LocalTime startTime;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm:ss")
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
	private LocalTime endTime;
	private int daySpan;//是否跨天0否1是
	private String ea0;
	private String ea1;
	private String ea2;
	private String ea3;
	private String ea4;
	public String getShiftCode() {
		return shiftCode;
	}
	public void setShiftCode(String shiftCode) {
		this.shiftCode = shiftCode;
	}
	public int getOverTime() {
		return overTime;
	}
	public void setOverTime(int overTime) {
		this.overTime = overTime;
	}
	public LocalTime getStartTime() {
		return startTime;
	}
	public void setStartTime(LocalTime startTime) {
		this.startTime = startTime;
	}
	public LocalTime getEndTime() {
		return endTime;
	}
	public void setEndTime(LocalTime endTime) {
		this.endTime = endTime;
	}
	public int getDaySpan() {
		return daySpan;
	}
	public void setDaySpan(int daySpan) {
		this.daySpan = daySpan;
	}
	public String getEa0() {
		return ea0;
	}
	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}
	public String getEa1() {
		return ea1;
	}
	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}
	public String getEa2() {
		return ea2;
	}
	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}
	public String getEa3() {
		return ea3;
	}
	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}
	public String getEa4() {
		return ea4;
	}
	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}
	
}
